Content addressable storage system

ABSTRACT

A content addressable storage system (CASS) comprises a storage system coupled to one or more content addressable storage array elements (CASAEs). The storage system is coupled to storage resources of a local storage array configured to store a high level meta-directory that describes data containers, e.g., directories, files and logical units (luns), served by the CASS. In addition, each CASAE is coupled to storage resources of a remote storage array configured to store user data (data blocks) of the data containers served by the CASS. The CASAE is configured to perform a content addressable storage computation on each data block written to its storage resources in order to prevent storage of two or more blocks with the same data. Notably, the CASAE interacts with its associated remote storage array to form a CASAE “storage brick”.

CROSS-REFERENCE TO RELATED APPLICATION

The present invention is related to the following commonly assigned U.S. Pat. No. 7,734,603, issued on Jun. 8, 2010, entitled, Content Addressable Storage Array Element, by Charles McManish.

FIELD OF THE INVENTION

The present invention relates generally to data storage compression and, more specifically, to a content addressable storage system that is configured to eliminate duplicate data stored on its storage resources.

BACKGROUND OF THE INVENTION

A storage system typically comprises one or more storage devices into which information may be entered, and from which information may be obtained, as desired. The storage system includes a storage operating system that functionally organizes the system by, inter alia, invoking storage operations in support of a storage service implemented by the system. The storage system may be implemented in accordance with a variety of storage architectures including, but not limited to, a network-attached storage environment, a storage area network and a disk assembly directly attached to a client or host computer. The storage devices are typically disk drives organized as a disk array, wherein the term “disk” commonly describes a self-contained rotating magnetic media storage device. The term disk in this context is synonymous with hard disk drive (HDD) or direct access storage device (DASD).

Storage of information on the disk array is preferably implemented as one or more storage “volumes” of physical disks, defining an overall logical arrangement of disk space. The disks within a volume are typically organized as one or more groups, wherein each group may be operated as a Redundant Array of Independent (or Inexpensive) Disks (RAID). Most RAID implementations enhance the reliability/integrity of data storage through the redundant writing of data “stripes” across a given number of physical disks in the RAID group, and the appropriate storing of redundant information (parity) with respect to the striped data. The physical disks of each RAID group may include disks configured to store striped data (i.e., data disks) and disks configured to store parity for the data (i.e., parity disks). The parity may thereafter be retrieved to enable recovery of data lost when a disk fails. The term “RAID” and its various implementations are well-known and disclosed in A Case for Redundant Arrays of Inexpensive Disks (RAID), by D. A. Patterson, G. A. Gibson and R. H. Katz, Proceedings of the International Conference on Management of Data (SIGMOD), June 1988.

The storage operating system of the storage system may implement a high-level module, such as a file system, to logically organize the information stored on the disks as a hierarchical structure of named data containers, such as directories, files and blocks. For example, each “on-disk” file may be implemented as set of data structures, i.e., disk blocks, configured to store information, such as the actual data for the file. These data blocks are organized within a volume block number (vbn) space that is maintained by the file system. The file system organizes the data blocks within the vbn space as a “logical volume”; each logical volume may be, although is not necessarily, associated with its own file system. The file system typically consists of a contiguous range of vbns from zero to n, for a file system of size n−1 blocks.

A known type of file system is a write-anywhere file system that does not overwrite data on disks. If a data block is retrieved (read) from disk into a memory of the storage system and “dirtied” (i.e., updated or modified) with new data, the data block is thereafter stored (written) to a new location on disk to optimize write performance. A write-anywhere file system may initially assume an optimal layout such that the data is substantially contiguously arranged on disks. The optimal disk layout results in efficient access operations, particularly for sequential read operations, directed to the disks. An example of a write-anywhere file system that is configured to operate on a storage system is the Write Anywhere File Layout (WAFL™) file system available from Network Appliance, Inc., Sunnyvale, Calif.

The storage operating system may further implement a storage module, such as a RAID system, that manages the storage and retrieval of the information to and from the disks in accordance with input/output (I/O) operations. The RAID system is also responsible for parity operations performed on the RAID groups in the storage system. The RAID system typically organizes the RAID groups into one large “physical” disk (i.e., a physical volume), such that the disk blocks are concatenated across all disks of all RAID groups. The logical volume maintained by the file system is then “disposed over” (spread over) the physical volume maintained by the RAID system.

The RAID system maintains information about the geometry of the underlying physical disks (e.g., the number of blocks in each disk) in data structures, such as raid labels, stored on the disks. The RAID system provides the disk geometry information to the file system for use when creating and maintaining the vbn-to-disk, pbn mappings used to perform write allocation operations and to translate vbns to disk locations for read operations. Block allocation data structures, such as an active map, a snapmap, a space map and a summary map, are data structures that describe block usage within the file system, such as the write-anywhere file system. These mapping data structures are independent of the geometry and are used by a write allocator of the file system as existing infrastructure for the logical volume.

When accessing a block of a file in response to servicing a client request, the file system specifies a vbn that is translated by the RAID system into a physical block number (pbn) location on a particular disk (disk, pbn) within a RAID group of the physical volume. Each block in the vbn space and in the pbn space is typically fixed, e.g., 4 k bytes (kB), in size; accordingly, there is typically a one-to-one mapping between the information stored on the disks in the pbn space and the information organized by the file system in the vbn space. The (disk, pbn) location specified by the RAID system may be further translated by a disk driver system of the storage operating system into a plurality of sectors on the specified disk.

The requested block is then retrieved from disk and stored in a buffer cache of the memory as part of a buffer tree of the file. The buffer tree is an internal representation of blocks for a file stored in the buffer cache and maintained by the file system. Broadly stated, the buffer tree has an inode at the root (top-level) of the file. An inode is a data structure used to store information, such as metadata, about a file, whereas the data blocks are structures used to store the actual data for the file. The information contained in an inode may include, e.g., references to locations on disk of the data blocks for the file. The references to the locations of the file data are provided by block pointers, which may further reference indirect blocks that, in turn, reference the data blocks, depending upon the quantity of data in the file.

The RAID system maintains information about the geometry of the underlying physical disks (e.g., the number of blocks in each disk) in data structures, such as raid labels, stored on the disks. The RAID system provides the disk geometry information to the file system for use when creating and maintaining the vbn-to-disk, pbn mappings used is to perform write allocation operations and to translate vbns to disk locations for read operations. Block allocation data structures, such as an active map, a snapmap, a space map and a summary map, are data structures that describe block usage within the file system, such as the write-anywhere file system. These mapping data structures are independent of the geometry and are used by a write allocator of the file system as existing infrastructure for the logical volume.

Data storage is a central part of many industries that operate in archival and compliance application environments, such as banks, government facilities/contractors and securities brokerages. In many of these environments, it is necessary to store selected data, e.g., e-mails, financial documents and transaction records, in an immutable and unalterable manner, possibly for long periods of time. Typically, data backup operations are performed to ensure the protection and restoration of such data in the event of failure. However, backup operations often result in the duplication of data on backup storage resources, such as disks, causing inefficient consumption of storage space on those resources. It is thus desirable to eliminate duplicate data on the storage resources and ensure the storage of only single instances of data to thereby achieve storage compression.

One known approach to providing data storage compression involves a content addressable storage system that utilizes a hash to determine whether or not data to be written previously exists on backup storage resources. The process of computing the hash in the content addressable storage system typically takes place at the file level (as opposed to the logical unit or lun level) and is relatively slow because of the substantial computation needed to determine whether or not the data has already been stored. Consequently, write operations are typically slow processes; this is the bane of content addressable storage systems in the industry.

Another known approach is the Carnegie Mellon University (CMU) Network Attached Secure Disk (NASD) system developed by the CMU Parallel Development Lab. The NASD involves “smart” disks attached to a network as a way of replacing direct attached disks. However, as in the case of a general purpose system, this approach suffers from performance that is not sufficient for primary storage and from the use of public networks that are not sufficiently reliable to provide predictable performance.

SUMMARY OF THE INVENTION

The present invention is directed to a content addressable storage system (CASS) comprising a storage system coupled to one or more content addressable storage array elements (CASAEs). The storage system is coupled to storage resources of a local storage array configured to store a high level meta-directory that describes data containers, e.g., directories, files and logical units (luns), served by the CASS. In addition, each CASAE is coupled to storage resources of a remote storage array configured to store user data (data blocks) of the data containers served by the CASS. The CASAE is configured to perform a content addressable storage computation on each data block written to its storage resources in order to prevent storage of two or more blocks with the same data. Notably, the CASAE interacts with its associated remote storage array to form a CASAE “storage brick”.

According to an aspect of the invention, additional CASAE storage bricks may be coupled to the storage system of the CASS to allow striping of write operations across the bricks. These multiple storage bricks operate in parallel to allow aggregation of resources among the bricks, thereby enabling fast and efficient performance of content addressable storage computations associated with the write operations. In order to provide increased reliability and availability for the CASS, the storage bricks may be organized as a group and operated as a Redundant Array of Independent (or Inexpensive) Disks (RAID). Illustratively, a RAID level implementation (such as, e.g., RAID 4) may be disposed over the storage bricks of the CASS with one of the bricks designated a parity brick. Essentially, each storage brick may be treated as a disk within the RAID group, with the disks on the parity brick functioning as parity disks in a conventional RAID configuration.

A file or block-based write request issued by a client is received at the storage system and passed to a file system executing on the system. Thereafter, during write allocation, a write allocator of the file system searches block allocation data structures to identify available storage space for the write data and, to that end, constructs a block layout message that identifies data blocks to be used for storing the write data associated with the write request. According to another aspect of the invention, however, the file system inserts a special block number, e.g., zero, into the message and passes that message to a RAID system of the storage system, which attempts to balance the write allocation (write data) load evenly across all the bricks of the CASS.

To that end, the RAID system cooperates with a disk driver system of the storage system to create and forward a SCSI message, including a write operation and write data, to an appropriate CASAE. Upon receiving the write data, the CASAE performs the content addressable storage computation to determine the location at which to store the write data in a lun of its storage brick. The CASAE then returns a physical block number (pbn) indicating where that block resides in the lun. Upon receiving the pbn, the file system performs a “fix-up” operation to change the special block number to the actual pbn location on the brick. The file system then updates buffer tree pointers for the lun (in the local storage array) to reference the pbn location of that data block.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and further advantages of the invention may be better understood by referring to the following description in conjunction with the accompanying drawings in which like reference numerals indicate identical or functionally similar elements:

FIG. 1 is a schematic block diagram of a content addressable storage system (CASS) according to the present invention;

FIG. 2 is a schematic block diagram a storage system of the CASS that may be advantageously used with the present invention;

FIG. 3 is a schematic block diagram of a storage operating system that may be advantageously used with the present invention;

FIG. 4 is a schematic block diagram of a content addressable storage array element (CASAE) of the CASS that may be advantageously used with the present invention;

FIG. 5 is a schematic block diagram of an inode that may be advantageously used with the present invention;

FIG. 6 is a schematic block diagram of a buffer tree of a file that may be advantageously used with the present invention;

FIG. 7 is a schematic block diagram illustrating a meta-directory and data block on-disk storage layout according to the present invention;

FIG. 8 is a flow chart of a procedure illustrating operation of the storage system in the CASS;

FIG. 9 is a functional block diagram illustrating a content addressable storage computation performed by the CASAE; and

FIG. 10 is a flow chart of a procedure illustrating operation of the CASAE in the CASS.

DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT

FIG. 1 is a schematic block diagram of a content addressable storage system (CASS) according to the present invention. The CASS 100 comprises a storage system 200 coupled to one or more CASAEs 400 via a switching fabric 150. The switching fabric 150, e.g., an Ethernet switch, is illustratively used for connectivity between the storage system 200 and each CASAE 400 to provide a low cost, hot-pluggable network infrastructure of the CASS 100. Clients 110 are connected to the storage system 200 over a computer network 120, which may comprise a point-to-point connection or a shared medium, such as a local area network. Illustratively, the computer network 120 may be embodied as an Ethernet network or a Fibre Channel (FC) network. Each client 110 may communicate with the storage system over network 120 by exchanging discrete frames or packets of data according to pre-defined protocols, such as the Transmission Control Protocol/Internet Protocol (TCP/IP).

The client 110 may be a general-purpose computer configured to execute applications and interact with the storage system 200 in accordance with a client/server model of information delivery. That is, the client may request the services of the storage system, and the system may return the results of the services requested by the client, by exchanging packets over the network 120. The clients may issue packets including file-based access protocols, such as the Common Internet File System (CIFS) protocol or Network File System (NFS) protocol, over TCP/IP when accessing information, such as data, in the form of files and directories. Alternatively, the client may issue packets including block-based access protocols, such as the Small Computer Systems Interface (SCSI) protocol encapsulated over TCP (iSCSI) and SCSI encapsulated over Fibre Channel (FCP), when accessing information in the form of blocks.

As described herein, the storage system 200 is coupled to storage resources, e.g., disks, of a local storage array 260 configured to store a high level meta-directory that describes data containers, e.g., directories, files and logical units (luns), served by the CASS 100. In addition, each CASAE 400 is coupled to disks of a remote storage array 460 configured to store user data (data blocks) of the data containers served by the CASS 100. The CASAE is configured to perform a content addressable storage computation on each data block written to its storage resources in order to prevent storage of two or more blocks with the same data. Notably, the CASAE interacts with its associated remote storage array to form a CASAE “storage brick” 180. As used herein, a storage brick denotes a relatively non-intelligent set of disks that have a relatively small amount of storage capacity. The storage capacity of the remote storage array 460 of each CASAE storage brick 180 cooperates with the storage capacity of the local storage array 260 of storage system 200 to provide an extended storage space of the CASS 100.

According to an aspect of the invention, additional CASAE storage bricks 180 may be coupled to the storage system of the CASS 100 to allow striping of write operations across the bricks. These multiple storage bricks 180 operate in parallel to allow aggregation of resources among the bricks, thereby enabling fast and efficient performance of content addressable storage computations associated with the write operations. Thus, the organization of one or more CASAE storage bricks 180 may enable to CASS 100 to form a grid architecture. Moreover, the addition of CASAE storage bricks 180 enables scaling (increasing) of storage and servicing of the disks without compromising access to data. Each time a remote storage array 460 is added to the CASS, another compute element of the CASAE brick 180 is illustratively added that is capable of performing storage computations over the (relatively small) array. This enables a scalable system without degradation because of the balancing of computation among the bricks. That is, a is CASAE 400 illustratively serves a relatively small number (e.g., 8) of disks, instead of a typically larger number (e.g., 16, 32 or 64) in local storage array 260 served by the storage system 200. If the storage computations were performed by the storage system 200 for content addressable storage implemented on the disks of the local storage array 260, performance would be limited (i.e., slowed) because of the larger storage capacity and corresponding larger domain space that must be searched to determine whether or not a copy of the data exists.

In order to provide increased reliability and availability for the CASS, the storage bricks 180 may be organized as a group and operated as a Redundant Array of Independent (or Inexpensive) Disks (RAID). Most RAID implementations, such as a RAID-4 level implementation, enhance the reliability/integrity of data storage through the redundant writing of data “stripes” across a given number of physical disks in the RAID group, and the appropriate storing of parity information with respect to the striped data. Here, a RAID level 4 implementation may be disposed over the storage bricks 180 of the CASS 100 with one of the bricks designated a parity brick. Essentially, each storage brick 180 may be treated as a disk within the RAID group, with the disks on the parity brick functioning as parity disks in a conventional RAID 4 configuration. It will be apparent to those skilled in the art that other RAID implementations may be disposed over the storage bricks, including a double parity RAID 6 implementation configured to detect and correct double failures. In such an illustrative RAID 6 implementation, two storage bricks 180 are designated and configured as parity bricks. If one or two storage bricks are lost because of, e.g., a failure, then the RAID implementation allows reconstruction of the failed brick(s) in a manner that is similar to reconstruction of failed disk(s). Although data can be retrieved (read) from the disks of the failed storage brick, the brick must be repaired to enable processing of write operations.

FIG. 2 is a schematic block diagram a storage system 200 that may be advantageously used with the present invention. The storage system 200 is a computer that provides storage service relating to the organization of information on storage devices, such as disks 230 of a local storage (disk) array 260. The storage system 200 comprises a processor 222, a memory 224, one or more network adapters 226, one or more storage is adapters 228 and a non-volatile random access memory (NVRAM 229) interconnected by a system bus 225. The NVRAM 229 is illustratively a solid-state memory array having either back-up battery or other built-in last-state-retention capabilities that holds the last state of the memory array in the event of any power loss to the array. Each network adapter 226 comprises the mechanical, electrical and signaling circuitry needed to connect the storage system 200 to a client 110 over the computer network 120. The storage system 200 also includes a storage operating system 300 that preferably implements a high-level module, such as a file system, to logically organize the information as a hierarchical structure of named data containers, such as directories, files and special types of files called virtual disks (vdisks), on the disks.

In the illustrative embodiment, the memory 224 comprises storage locations that are addressable by the processor and adapters for storing software program code. A portion of the memory may be further organized as a “buffer cache” 270 for storing certain data structures associated with the present invention. The processor and adapters may, in turn, comprise processing elements and/or logic circuitry configured to execute the software code and manipulate the data structures. Storage operating system 300, portions of which is typically resident in memory and executed by the processing elements, functionally organizes the system 200 by, inter alia, invoking storage operations executed by the storage system. It will be apparent to those skilled in the art that other processing and memory means, including various computer readable media, may be used for storing and executing program instructions pertaining to the inventive technique described herein.

The storage adapter 228 cooperates with the storage operating system 300 executing on the system 200 to access information requested by a user (or client). The information may be stored on any type of attached array of writable storage device media such as video tape, optical, DVD, magnetic tape, bubble memory, electronic random access memory, micro-electro mechanical and any other similar media adapted to store information, including data and parity information. However, as illustratively described herein, the information is preferably stored on the disks 230, such as HDD and/or DASD, of local storage array 260. The storage adapter includes input/output (I/O) interface circuitry that couples to the disks over an I/O interconnect arrangement, such as a conventional high-performance, FC serial link topology.

Storage of information on array 260 is preferably implemented as one or more storage “volumes” that comprise a collection of physical storage disks 230 cooperating to define an overall logical arrangement of volume block number (vbn) space on the volume(s). Each logical volume is generally, although not necessarily, associated with its own file system. The disks within a logical volume/file system are typically organized as one or more groups, wherein each group may be operated as a RAID group. An illustrative example of a RAID implementation is a RAID-4 level implementation, although it should be understood that other types and levels of RAID implementations may be used in accordance with the inventive principles described herein.

To facilitate access to the disks 230, the storage operating system 300 implements a write-anywhere file system that cooperates with virtualization modules to “virtualize” the storage space provided by disks 230. The file system logically organizes the information as a hierarchical structure of directories and files on the disks. Each “on-disk” file may be implemented as set of disk blocks configured to store information, such as data, whereas the directory may be implemented as a specially formatted file in which names and links to other files and directories are stored. The virtualization modules allow the file system to further logically organize information as a hierarchical structure of additional data containers, such as vdisks, on the disks that are exported as luns.

In the illustrative embodiment, the storage operating system is preferably the NetApp® Data ONTAP™ operating system available from Network Appliance, Inc., Sunnyvale, Calif. that implements a Write Anywhere File Layout (WAFL®) file system. However, it is expressly contemplated that any appropriate storage operating system may be enhanced for use in accordance with the inventive principles described herein. As such, where the term “WAFL” is employed, it should be taken broadly to refer to any storage operating system that is otherwise adaptable to the teachings of this invention.

FIG. 3 is a schematic block diagram of the storage operating system 300 that may be advantageously used with the present invention. The storage operating system comprises a series of software layers organized to form an integrated network protocol stack or, more generally, a multi-protocol engine that provides data paths for clients to access information stored on the storage system using block and file access protocols. The protocol stack includes a media access layer 310 of network drivers (e.g., gigabit Ethernet drivers) that interfaces to network protocol layers, such as the IP layer 312 and its supporting transport mechanisms, the TCP layer 314 and the User Datagram Protocol (UDP) layer 316. A file system protocol layer provides multi-protocol file access and, to that end, includes support for the Direct Access File System (DAFS) protocol 318, the NFS protocol 320, the CIFS protocol 322 and the Hypertext Transfer Protocol (HTTP) protocol 324. A VI layer 325 implements the VI architecture to provide direct access transport (DAT) capabilities, such as RDMA, as required by the DAFS protocol 318.

An iSCSI driver layer 326 provides block protocol access over the TCP/IP network protocol layers, while a FC driver layer 330 receives and transmits block access requests and responses to and from the storage system. The FC and iSCSI drivers provide FC-specific and iSCSI-specific access control to the blocks and, thus, manage exports of luns to either iSCSI or FCP or, alternatively, to both iSCSI and FCP when accessing the blocks on the storage system. In addition, the storage operating system includes a disk storage module embodied as a RAID system 340 that manages the storage and retrieval of information to and from the volumes/disks in accordance with I/O operations, and a disk driver system 350 that implements a disk access protocol such as, e.g., the SCSI protocol.

Bridging the disk software layers with the integrated network protocol stack layers is a virtualization system 355 that is implemented by a file system 365 interacting with virtualization modules illustratively embodied as, e.g., vdisk module 370 and SCSI target module 360. The vdisk module 370 may be illustratively layered on the file system 365 to enable access by administrative interfaces, such as a user interface (not shown), in response to a user (system administrator) issuing commands to the storage system. The SCSI target module 360 is disposed between the FC and iSCSI drivers 326, 330 and the file system 365 to provide a translation layer of the virtualization system 355 between the block (lun) space and the file system space, where luns are represented as blocks.

The file system is illustratively a message-based system that provides logical volume management capabilities for use in access to the information stored on the storage devices, such as disks. That is, in addition to providing file system semantics, the file system 365 provides functions normally associated with a volume manager. These functions include (i) aggregation of the disks, (ii) aggregation of storage bandwidth of the disks, and (iii) reliability guarantees, such as mirroring and/or parity (RAID). The file system 365 illustratively implements the WAFL file system (hereinafter generally the “write-anywhere file system”) having an on-disk format representation that is block-based using, e.g., 4 kilobyte (kB) blocks and using index nodes (“inodes”) to identify files and file attributes (such as creation time, access permissions, size and block location). The file system uses files to store metadata describing the layout of its file system; these metadata files include, among others, an inode file. A file handle, i.e., an identifier that includes an inode number, is used to retrieve an inode from disk. In addition, the file system contains write allocator 368 which is implemented during a write allocation process. During write allocation, write allocator 368 of the file system searches block allocation data structures to identify available storage space for the write data and, to that end, constructs a block layout message that identifies data blocks to be used for storing the write data associated with the write request.

Broadly stated, all inodes of the write-anywhere file system are organized into the inode file. A file system (FS) info block specifies the layout of information in the file system and includes an inode of a file that includes all other inodes of the file system. Each logical volume (file system) has an FS info block that is preferably stored at a fixed location within, e.g., a RAID group. The inode of the root FS info block may directly reference (point to) blocks of the inode file or may reference indirect blocks of the inode file that, in turn, reference direct blocks of the inode file. Within each direct block of the inode file are embedded inodes, each of which may reference indirect blocks that, in turn, reference data blocks of a file.

Operationally, a request from the client 110 is forwarded as a packet over the computer network 120 and onto the storage system 200 where it is received at the network adapter 226. A network driver (of layer 310 or layer 330) processes the packet and, if appropriate, passes it on to a network protocol and file access layer for additional processing prior to forwarding to the write-anywhere file system 365. Here, the file system generates operations to load (retrieve) the requested data from disk if it is not resident “in core”, i.e., in the buffer cache 270. If the information is not in the cache, the file system 365 indexes into the inode file using the inode number to access an appropriate entry and retrieve a logical vbn. The file system then passes a message structure including the logical vbn to the RAID system 340; the logical vbn is mapped to a disk identifier and physical block number (disk,pbn) and sent to an appropriate driver (e.g., SCSI) of the disk driver system 350. The disk driver accesses the pbn from the specified disk and loads the requested data block(s) in the cache 270 for processing by the storage system. Upon completion of the request, the storage system (and operating system) returns a reply to the client 110 over the network 120.

It should be noted that the software “path” through the storage operating system layers described above needed to perform data storage access for the client request received at the storage system may alternatively be implemented in hardware. That is, in an alternate embodiment of the invention, a storage access request data path may be implemented as logic circuitry embodied within a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). This type of hardware implementation increases the performance of the storage service provided by storage system 200 in response to a request issued by client 110. Moreover, in another alternate embodiment of the invention, the processing elements of adapters 226, 228 may be configured to offload some or all of the packet processing and storage access operations, respectively, from processor 222, to thereby increase the performance of the storage service provided by the system. It is expressly contemplated that the various processes, architectures and procedures described herein can be implemented in hardware, firmware or software.

As used herein, the term “storage operating system” generally refers to the computer-executable code operable to perform a storage function in a storage system, e.g., that manages data access and may, in the case of a file server, implement file system semantics. In this sense, the ONTAP software is an example of such a storage operating system implemented as a microkernel and including the WAFL layer to implement the WAFL file system semantics and manage data access. The storage operating system can also be implemented as an application program operating over a general-purpose operating system, such as UNIX® or Windows NT®, or as a general-purpose operating system with configurable functionality, which is configured for storage applications as described herein.

In addition, it will be understood to those skilled in the art that the inventive technique described herein may apply to any type of special-purpose (e.g., file server, filer or multi-protocol storage appliance) or general-purpose computer, including a standalone computer or portion thereof, embodied as or including a storage system 200. An example of a multi-protocol storage appliance that may be advantageously used with the present invention is described in U.S. patent application Ser. No. 10/215,917 titled, Multi-Protocol Storage Appliance that provides Integrated Support for File and Block Access Protocols, filed on Aug. 8, 2002 issued as U.S. Pat. No. 7,873,700, on Jan. 18, 2011. Moreover, the teachings of this invention can be adapted to a variety of storage system architectures including, but not limited to, a network-attached storage environment, a storage area network and disk assembly directly-attached to a client or host computer. The term “storage system” should therefore be taken broadly to include such arrangements in addition to any subsystems configured to perform a storage function and associated with other equipment or systems.

FIG. 4 is a schematic block diagram of a CASAE 400 that may be advantageously used with the present invention. The CASAE is illustratively embodied as a blockoriented, ASIC element comprising, inter alia, a controller (e.g., processor 410 and memory 415) coupled to a disk port adapter 420 having a plurality of (e.g., 8) disk ports 425 and a network port adapter 430 having a plurality of (e.g., 2) network ports 435, such as gigabyte Ethernet ports. The processor 410 is adapted to perform the content addressable storage computation according to the present invention. The network ports 435 are adapted to couple the CASAE 400 to the storage system 200 via the switching fabric 150. The disk ports 425, in turn, are adapted to couple the storage resources (e.g., disks 450) to the CASAE to thereby form a CASAE “storage brick” 180.

The disks 450 of the CASAE storage brick 180 are exported as lun 470, portions of which are illustratively allocated to firmware, accounting (including a mapping table described herein) and user data (data blocks). In addition, the disks of the lun 470 are organized as a single RAID level implementation (e.g., a RAID 6) group configured to increase the reliability of the disks 450. If one or two of the disks fail, the storage brick 180 continues to operate because of the RAID 6 implementation feature and the failed disk(s) may be replaced or repaired at the next scheduled downtime. Failure of the processor 410, however, results in an emergency situation because that component is not protected by the RAID implementation. Although data could still be read from the disks, the storage brick cannot process write operations until the failed component is replaced.

In the illustrative embodiment, a file is represented in the write-anywhere file system as an inode data structure adapted for storage on the disks. FIG. 5 is a schematic block diagram of an inode 500, which preferably includes a metadata section 510 and a data section 550. The information stored in the metadata section 510 of each inode 500 describes the file and, as such, includes the type (e.g., regular, directory, vdisk) 512 of file, the size 514 of the file, time stamps (e.g., access and/or modification) 516 for the file and ownership, i.e., user identifier (UID 518) and group ID (GID 520), of the file. The contents of the data section 550 of each inode, however, may be interpreted differently depending upon the type of file (inode) defined within the type field 512. For example, the data section 550 of a directory inode contains metadata controlled by the file system, whereas the data section of a regular inode contains user (file system) data. In this latter case, the data section 550 includes a representation of the data associated with the file.

Specifically, the data section 550 of a regular on-disk inode may include file system data or pointers, the latter referencing 4 kB data blocks on disk used to store the file system data. Given the restricted size (e.g., 128 bytes) of the inode, file system data having a size that is less than or equal to 64 bytes is represented, in its entirety, within the data section of that inode. However, if the file system data is greater than 64 bytes but less than or equal to 64 kB, then the data section of the inode (e.g., a first level inode) comprises up to 16 block pointers, each of which references a 4 kB block of data on the disk.

Moreover, if the size of the data is greater than 64 kB but less than or equal to 64 megabytes (MB), then each pointer in the data section 550 of the inode (e.g., a second level inode) references an indirect block (e.g., a first level block) that contains 1024 pointers, each of which references a 4 kB data block on disk. For file system data having a size greater than 64 MB, each pointer in the data section 550 of the inode (e.g., a third level inode) references a double-indirect block (e.g., a second level block) that contains 1024 pointers, each referencing an indirect (e.g., a first level) block. The indirect block, in turn, that contains 1024 pointers, each of which references a 4 kB data block on disk. When accessing a file, each block of the file may be loaded from disk into the buffer cache 270.

When an on-disk inode (or block) is loaded from disk into buffer cache 270, its corresponding in core structure embeds the on-disk structure. For example, the dotted line surrounding the inode 500 indicates the in core representation of the on-disk inode structure. The in core structure is a block of memory that stores the on-disk structure plus additional information needed to manage data in the memory (but not on disk). The additional information may include, e.g., a “dirty” bit 560. After data in the inode (or block) is updated/modified as instructed by, e.g., a write operation, the modified data is marked “dirty” using the dirty bit 560 so that the inode (block) can be subsequently “flushed” (stored) to disk. The in core and on-disk format structures of the WAFL file system, including the inodes and inode file, are disclosed and described in U.S. Pat. No. 5,819,292 titled Method for Maintaining Consistent States of a File System and for Creating User-Accessible Read-Only Copies of a File System by David Hitz et al., issued on Oct. 6, 1998 hereby incorporated by reference.

FIG. 6 is a schematic block diagram of a buffer tree of a file that may be advantageously used with the present invention. The buffer tree is an internal representation of blocks for a file (e.g., file 600) loaded into the buffer cache 270 and maintained by the write-anywhere file system 365. A root (top-level) inode 602, such as an embedded inode, references indirect (e.g., level 1) blocks 604. Note that there may be additional levels of indirect blocks (e.g., level 2, level 3) depending upon the size of the file. The indirect blocks (and inode) contain pointers 605 that ultimately reference data blocks 606 used to store the actual data of the file. That is, the data of file 600 are contained in data blocks and the locations of these blocks are stored in the indirect blocks of the file. Each level 1 indirect block 604 may contain block pointers to as many as 1024 data blocks. According to the “write anywhere” nature of the file system, these data blocks may be located anywhere on the disks (e.g., disks 450).

As noted, the disks 230 of local storage array 260 are configured to store a high level meta-directory that describes data containers, e.g., directories, files and luns, served by the CASS 100, whereas the disks 450 of remote storage array 460 are configured to store the actual data blocks of those containers. FIG. 7 is a schematic block diagram illustrating a meta-directory and data block on-disk storage layout 700 according to the present invention. Specifically, the local storage array 260 contains directory blocks 710 with one or more inodes 712 having pointers that reference (point to) file inodes 722. The file inodes, in turn, have pointers that illustratively point to indirect blocks 724 which, in turn, have block pointers that reference actual data blocks 726 stored on the remote storage array 460. Accordingly, all metadata, i.e., inodes and indirect blocks, of the buffer trees for files (and vdisks) reside on the disks 230 of local storage array 260 of storage system 200, while all data blocks reside on the disks 450 of the remote storage arrays 460 of the CASAE storage bricks 180. In other words, the disks (and volumes) on the local storage array 260 store all inodes and indirect blocks of the data containers; the local storage array has no resident data blocks. All block pointers in those inodes or indirect blocks reference data blocks stored on one or more of the remote storage arrays 460.

Communication between the storage system 200 and each CASAE storage brick 180 is illustratively implemented using a storage protocol exchange involving SCSI command descriptor block (CDB) messages. In response to a write request issued by a client and directed to a data container (e.g., a file) stored on the lun 470 of a brick, the file system 365 cooperates with the RAID system 340 to generate a message that includes an operation (e.g., read or write), a block number, status and data (e.g., write data). The message is then passed to the disk driver system 350 and forwarded as a SCSI CDB message to the CASAE 400 of the storage brick 180, which invokes a storage computation process to locate any duplicate data blocks on its lun 470. In response, the CASAE returns to the storage system (file system) a SCSI CDB message including the actual pbn of the location of the write data in the lun 470.

According to the invention, the file system 365 employs a special block number, e.g., block zero, to instruct the CASAE 400 to perform the content addressable storage computation on each data block to determine whether that data has already been written to a location on the lun. The storage computation illustratively involves a hashing function, e.g., MD5, because of the substantial domain space involved with data storage on the disks. The embodiment described herein illustratively employs the MD5 hashing algorithm to compute a hash key, although it will be apparent to those skilled in the art that other hashing algorithms, such as parity or cyclic redundancy checking (CRC), may also be used with the present invention. Depending on the particular hashing algorithm used, computation of the resulting hash key may be time consuming. Execution of some hashing algorithms (such as parity or CRC) may not be as time consuming as others (such as MD5), but the use of the latter algorithms reduces the chances of collisions, unless the domain is extremely large.

Specifically, the CASAE computes a hash key, e.g., a 128 bit address, based on the content of the data block and then determines whether the key has been generated for a previously stored data block. In theory, every unique data block computes to a new 128-bit hash key; yet some blocks will be the same and, accordingly, there will be collisions. If the key has been previously generated, a comparison of the data block contents having similar keys is performed and, if the contents match, a reference count on the previously stored data block is incremented. The block number (location) of the previously stored data block is then returned to the file system. On the other hand, if the hash key has not been previously generated or if the data contents do not match, the data is written to a next available block location on the lun and its location returned to the file system. Illustratively, a vendor-specific SCSI command may be utilized to cause the CASAE to remove a block from its hash table and to return it to the free list of blocks.

FIG. 8 is a flow chart of a procedure illustrating operation of the storage system 200 in the CASS 100. The procedure starts at Step 800 and proceeds to Step 802 where a file or block-based write request is issued by a client 110 and received at the network protocol stack of the storage system 200. The write request is passed to the file system 365 which, at Step 804, logs write data associated with the request, e.g., in NVRAM 229. In Step 806, the storage system acknowledges completion of the request to the client. Thereafter, during write allocation, a write allocator 368 of the file system searches block allocation data structures to identify available storage space for the write data (Step 808) and, to that end, constructs a block layout message that identifies data blocks to be used for storing the write data associated with the write request (Step 810). According to an aspect of the invention, however, the file system 365 inserts a special block number, e.g., zero, into the message at Step 812 and, in Step 814, passes that message to the RAID system 340.

Note that the RAID system does not have knowledge of the geometry of the remote storage arrays 460 on the bricks 180, i.e., the bricks do not export their storage layout to the RAID system. Accordingly, the RAID system 340 attempts to balance the write allocation (write data) load evenly across all the bricks 180. Illustratively, each brick 180 provides 1 terabyte (TB) of storage and the RAID system attempts to stripe write data across the bricks of the CASS 100 in a balanced manner. To that end, the RAID system cooperates with the disk driver system 350 to create and forward a SCSI CDB message, including a write operation and write data, to an appropriate CASAE (Step 816). Upon receiving the write data, the CASAE 400 performs the content addressable storage computation described herein to determine the location at which to store the write data in the lun 470 (Step 818), i.e., whether there is a duplicate data block containing that data, and, in Step 820, returns a pbn indicating where that block resides in the lun.

Upon receiving the pbn, the file system 365 performs a “fix-up” operation in Step 822 to correct an initial write allocation assumption. That is, the file system initially allocated the write data to the special block number zero but, during the fix-up operation, changes that special block number to the actual pbn location on the brick. In Step 824, the file system updates the buffer tree (e.g., inode and/or indirect block) pointers for the lun 470 (in local storage array 260) to reference the pbn location of that data block. The procedure then ends at Step 826.

FIG. 9 is a functional block diagram illustrating the content addressable storage computation performed by the CASAE. Illustratively, the processor 410 of CASAE computes a hash key 920 from the content of a write data block 940 using a hash function 930. The resulting hash key 920 is then “looked-up” in a content addresable mapping data structure to determine if there is a duplicate data block stored on the remote storage array 460 of the CASAE storage brick 180. The mapping data structure may be organized in a variety of forms, including as a binary tree (B-tree); however, for ease of description and understanding, the mapping data structure is depicted in tabular form, e.g., as a mapping table 900 having a plurality of entries 910 indexed by hash key.

Each entry 910 of the mapping table 900 illustratively contains a hash key field 912, a pbn pointer field 914 configured to reference a previously stored data block (i.e., the field does not hold the actual content of the data block) on the disks 450 of the remote storage array 460 and a reference count field 916. Note that there may be multiple entries 910 with hash keys 912 that match the resulting hash key 920, although the contents of the reference data blocks may not be the same. Assume a match results between hash key 920 and hash key 912 a of entry 910 a. Comparator 950 compares the content of the write data block 940 with the content of a write data block retrieved from disk 450 (as referenced by the pbn pointer 914 a in entry 910 a). If the contents of the blocks match, then the data is a duplicate and the reference count 916 a in entry 910 a is incremented. As noted, the CASAE 400 then returns a copy of the pbn pointer 914 a to the file system 365 as if it had actually stored the write data block 940 at that location.

The incremented reference count 916 is also reflected in the appropriate inode 722 or indirect block 724 stored on the local storage array 260. Using the copy of the pbn pointer 914 a, the file system 365 cooperates with the RAID system 340 to perform the fix-up operation to update the reference count for the appropriate inode or indirect block in the buffer tree for the lun 470. Essentially, one or more buffer tree (e.g., inode and/or indirect block) pointers for the lun 470 are updated in local storage array 260 to reference the pbn location of that data block.

However, if there is not a match between hash key 920 and hash key 912 of an entry 910 or if the keys do match but the contents of the data blocks do not match, then the data is not a duplicate and the write data block 940 is written to a next available pbn block location on the lun 470 and its location is returned to the file system. Note that if the contents of the data blocks do not match, then other entries 910 of the table 900 are not traversed. Here, a trade off is made between absolute data compression and performance. Even though there may be other duplicate data blocks, the chances of such duplicates existing (particularly when using the MD5 hashing function) is fairly low; accordingly, indexing into the content addressable mapping table 900 stops at the first hash key “hit”. The write data block 940 is then stored at the new pbn location and a new entry 910 b is created in the table 900. Specifically, the hash key field 912 b of the new entry is populated with the resulting hash key 920 and the pbn pointer field 914 b is populated with the pbn pointer of the next available location. In addition, the reference count field 916 b is set to reference only the single write data block 940 (e.g., set to a reference count of one).

FIG. 10 is a flow chart of a procedure illustrating operation of the CASAE 400 in the CASS 100. The procedure starts in Step 1000 and proceeds to Step 1002 where the CASAE receives the SCSI CDB message, including the write operation and write data, from the storage system. In Step 1004, the CASAE processor performs the content addressable storage computation to compute a hash key from the content of a write data block. Note that the hash key is computed on a 4 k byte basis, i.e., on the write data content of each data block. The resulting hash key is then “looked-up” in the mapping table to determine if there is a duplicate block on the remote storage array of the CASAE.

Specifically, the computed hash key is compared with the hash keys of the entries in the table to determine if there is match (Step 1006). If there is a match (Step 1008), the content of the data block is compared with the previously stored block content in Step 1010. If the data content comparison results in a match (Step 1012), the write data is a duplicate and the CASAE returns (to the storage system) the pbn location of the write data block where the data is stored in lun (which, in this case, is the previous location of the matching write data block) in Step 1016. Otherwise, the write data is not a duplicate and, accordingly, the write data block is stored in a next available pbn block location on the lun in Step 1014 and the pbn location of the block where the data is stored in lun is returned to the storage system in Step 1016. The procedure then ends at Step 1018.

In the illustrative embodiment described herein, each storage brick 180 can data compress (de-duplicate) its own storage space, but cannot de-duplicate another brick's space. That is, if a data block is written to a first brick that is the same block that was previously written to a second brick, there will be two copies of that block. By enabling each brick to manage only its own storage space, the domain of collisions is restricted to the number of 4 k blocks that can be stored on a brick, e.g., one TB of storage. In addition, the storage computation is advantageously distributed among all of the storage bricks. For example, assume it takes a millisecond for each brick to compute the MD5 hash key. With 8 bricks, computations for 32 k bytes of write data are performed in one millisecond, as opposed to 8 milliseconds if the computations were performed sequentially on a single brick.

While there has been shown and described illustrative embodiments of a CASAE of a storage system configured to eliminate duplicate data stored on its storage resources, it is to be understood that various other adaptations and modifications may be made within the spirit and scope of the invention. For example, in an alternate embodiment, the invention may be extended to another layer of pbn-to-actual pbn mapping in the storage brick 180, so the brick can return a unique block number for every block written to it (even though some blocks may internally point to the same block). In this way, the file system assumes that the write data blocks are always newly allocated.

Additionally, it should be noted that by utilizing a RAID arrangement in a CASS, improved availability may be obtained. If a single CASAE fails, the CASS can reconstruct data from the remaining CASAEs using RAID until such time as the failed CASAE is repaired.

The foregoing description has been directed to specific embodiments of this invention. It will be apparent, however, that other variations and modifications may be made to the described embodiments, with the attainment of some or all of their advantages. For instance, it is expressly contemplated that the teachings of this invention can be implemented as software, including a computer-readable medium having program instructions executing on a computer, hardware, firmware, or a combination thereof. Accordingly this description is to be taken only by way of example and not to otherwise limit the scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention. 

What is claimed is:
 1. A content addressable storage system, comprising: a storage system configured to connect to a local storage array, the local storage array configured to store a meta-directory that describes a data container served by the content addressable storage system; a first content addressable storage array element of a plurality of content addressable storage array elements configured to connect to the storage system and a remote storage array; the remote storage array configured to store data blocks of the data container served by the content addressable storage system and described by the meta-directory; the first content addressable storage array element further configured to interact with the remote storage array to form a storage brick; and the first content addressable storage array element further configured determine, before the data blocks are stored, whether the data blocks to be stored match blocks of data previously stored at the remote storage array.
 2. The content addressable storage system of claim 1 wherein the data container comprises one of a file, a directory, and a logical unit.
 3. The content addressable storage system of claim 1 wherein a plurality of storage bricks is organized as a group and operated as a RAID group.
 4. The system of claim 1 further comprising: a switching fabric configured to couple the storage system to the first content addressable storage array element.
 5. A method for providing a content addressable storage system, comprising: coupling a storage system to a first content addressable storage array element (CASAE) of a plurality of content addressable storage array elements, and coupling the storage system to a network port of the first CASAE; storing a meta-directory on a local storage array of the storage system, the meta-directory describing a data container served by the content addressable storage system; storing data blocks of the data container on a remote storage array operatively connected to the first CASAE, the data blocks of the data container served by the content addressable storage system and described by the meta-directory; and performing, on at least one of the plurality of CASAEs, a determination before the data blocks are stored of whether the data blocks to be stored match previously stored blocks of data at one or more remote storage arrays.
 6. The method of claim 5 further comprising forming a storage brick through an interaction between the first CASAE and the remote storage array.
 7. The method of claim 6 further comprising coupling the storage system to a second storage brick to allow data striping across the storage bricks.
 8. The method of claim 7 further comprising operating the storage bricks in parallel to allow aggregation of resources among the storage bricks, thereby increasing performance of content addressable storage computations.
 9. The method of claim 8 further comprising: organizing the storage bricks as a group; and operating the group as a RAID group.
 10. The method of claim 9 further comprising designating one of the storage bricks as a parity brick to thereby enable storage resources of the parity brick to function as parity storage resources in a predetermined RAID implementation.
 11. The method of claim 7 further comprising: receiving a write request at the storage system; passing the write request to a file system executing on the storage system; constructing a block layout message that identifies blocks to be used for storing user write data associated with the write request; inserting a first block number into the block layout message; passing the block layout message to a RAID system of the storage system, and attempting, by the RAID system, to balance the write data across the storage bricks; and forwarding the block layout message, a write operation, and the write data to at least one of the first and second storage bricks.
 12. The method of claim 11 further comprises determining a location at which to store the write data in a logical unit of the at least one storage brick.
 13. The method of claim 12 further comprising: returning a physical block number to the file system, the physical block number indicating the location at which the write data resides in a data block of the logical unit; performing an operation to change the first block number to the physical block number; and updating at least one buffer tree pointer for the logical unit in the local storage array to reference the physical block number.
 14. Apparatus configured to provide a content addressable storage system, comprising: means for coupling a storage system to a first content addressable storage array element (CASAE) of a plurality of content addressable storage array elements, and coupling the storage system to a network port of the first CASAE; means for storing a meta-directory on a local storage array of the storage system, the meta-directory describing a data container served by the content addressable storage system; means for storing data blocks of the data container on a remote storage array operatively connected to the first CASAE, the data blocks of the data container served by the content addressable storage system and described by the meta-directory; and means for performing, on at least one of the plurality of CASAEs, a determination before the data blocks are stored of whether the data blocks to be stored match previously stored blocks of data at one or more remote storage arrays.
 15. The apparatus of claim 14 further comprising means for forming a storage brick comprising the first CASAE and the remote storage array.
 16. The apparatus of claim 15 further comprising means for coupling the storage system to a second storage brick to allow data striping across the storage bricks.
 17. The apparatus of claim 16 further comprising means for operating the storage bricks in parallel to allow aggregation of resources among the storage bricks, thereby enabling increased performance of content addressable storage computations.
 18. A computer readable medium storing executable program instructions for execution by a processor, comprising: program instructions that couple a storage system to a first content addressable storage array element (CASAE) of a plurality of content addressable storage array elements, and coupling the storage system to a network port of the first CASAE; program instructions that store a meta-directory on a local storage array of the storage system, the meta-directory describing a data container served by the content addressable storage system; program instructions that store data blocks of the data container on a remote storage array operatively connected to the first CASAE, the data blocks of the data container served by the content addressable storage system and described by the meta-directory; and program instructions that perform, on at least one of the plurality of CASAEs, a determination before the data blocks are stored of whether the data blocks to be stored match previously stored blocks of data at one or more remote storage arrays.
 19. The computer readable medium of claim 18 wherein the program instructions that perform comprise program instructions that determine a location at which to store write data in a logical unit of the first CASAE.
 20. The computer readable medium of claim 19 further comprising program instructions that: return a physical block number to the storage system, the physical block number indicating the location at which the write data resides in a data block of the logical unit; perform a fix-up operation to change a special block number to the physical block number; and update at least one buffer tree pointer for the logical unit in the local storage array to reference the physical block number.
 21. A method for operating a storage system, comprising: coupling the storage system to a plurality of content addressable storage array elements (CASAEs) over a network, the storage system coupled to a switching fabric which is coupled to a network port on each CASAE; storing a meta-directory of inodes pointing to data blocks on a locally coupled storage array of the storage system; and performing, by a processor on each CASAE at the lun level, a computation on a plurality of data blocks stored by each CASAE to speed the computation and to provide parallel access of the data blocks and the meta-directory, wherein each CASAE of the plurality of CASAEs performs the computation in parallel with each other CASAE.
 22. The method of claim 21 further comprising: forming a storage brick through an interaction between a first CASAE of the plurality of CASAEs and a remote storage array.
 23. The method of claim 22 further comprising: forming a plurality of storage bricks; and striping data across the storage bricks.
 24. The method of claim 23 further comprising: organizing the storage bricks as a group; and operating the group as a RAID group.
 25. The method of claim 23 further comprising: designating one of the storage bricks as a parity brick to thereby enable storage of parity.
 26. The method of claim 23 further comprising: receiving a write request at the storage system; passing the write request to a file system executing on the storage system; constructing a block layout message that identifies data blocks to for storing user write data associated with the write request; inserting a special block number into the block layout message; passing the block layout message to a RAID system of the storage system, and attempting by the RAID system to balance the write data across the storage bricks; and forwarding the block layout message, a write operation and the write data, to at least one of the storage bricks.
 27. The method of claim 26 further comprising: determining a location at which to store the write data in a logical unit of the at least one storage brick.
 28. The method of claim 27 further comprising: returning a physical block number to the file system, the physical block number indicating the location at which the write data resides in a data block of the logical unit; performing a fix-up operation to change the special block number to the physical block number; and updating at least one buffer tree pointer for the logical unit in the local storage array to reference the physical block number of the data block.
 29. A non-transitory computer readable medium storing executable program instructions executed by a processor, comprising: program instructions that couple the storage system to a plurality of content addressable storage array elements (CASAEs) over a network, the storage system coupled to a switching fabric which is coupled to a network port on each CASAE; program instructions that store a meta-directory of inodes pointing to data blocks on a locally coupled storage array of the storage system; and program instructions that perform, by a processor on each CASAE at the lun level, a computation on a plurality of data blocks stored by each CASAE to speed the computation and to provide parallel access of the data blocks and the meta-directory, wherein each CASAE of the plurality of CASAEs performs the computation in parallel with each other CASAE. 